#ifndef _SDRAM_COMMON_DEVICE_IF_H
#define _SDRAM_COMMON_DEVICE_IF_H

#include "SDRAM_define.h"

class SDRAM_COMMON_device_if
: public sc_interface
{
public:
	virtual const bool
	SDRAM_refresh(bool	refresh_type) = 0;

	virtual const bool
	SDRAM_row_activate(unsigned		rank_sel,
					   unsigned		bank_sel,
					   SDRAM_addr_t	row_addr) = 0;

	virtual const bool
	SDRAM_read_command(unsigned		rank_sel,
					   unsigned		bank_sel,
					   SDRAM_addr_t	col_addr,
					   bool			auto_precharge) = 0;

	virtual const bool
	SDRAM_write_command(unsigned		rank_sel,
						unsigned		bank_sel,
						SDRAM_addr_t	col_addr,
						bool			auto_precharge) = 0;

	virtual const bool
	SDRAM_precharge(unsigned	rank_sel,
					unsigned	bank_sel,
					bool		precharge_all) = 0;
};

#endif